/**
 * 打电话
 * @param {String<Number>} phoneNumber - 数字字符串
 * @return {Promise}
 */
function callPhone(phoneNumber = '') {
    const num = phoneNumber.toString();
    return new Promise((rs, rj) => {
        uni.makePhoneCall({
            phoneNumber: num,
            success: () => rs(true),
            fail: err => rj(err),
        });
    });
}

export default callPhone;
